<?php 
$sql="select * from obras where ObraArtista=".$_GET['art']." order by ObraId desc";
$res=cons_sql_up($sql);
$i=1;
?>
<?php if(mysql_num_rows($res)>0):?>
<h2><strong>★</strong> Obras Destacadas</h2>

<?php while($regObra=mysql_fetch_array($res)):?>
<?php if($i==1):?>
<div class="row cat">
<?php endif ?>

<div class="col-md-4">
<img src="<?php echo RUTA_PANEL."/".$regObra['Obra']?>" alt="<?php echo utf8_encode($regObra['ObraTitulo'])?>"  height="200px"/>
<span class="nombre"><?php echo utf8_encode($regObra['ObraTitulo'])?></span>
<button type="button" class="btn btn-success" data-toggle="modal" data-target="#myModalObra<?php echo utf8_encode($regObra['ObraId'])?>">Ver Info</button></div>
<?php if($i==3):?>
</div>
<?php 
$i=1;
else: ?>
<?php 
$i++;
endif?>
<!--muestro detalle de obras-->

<div class="modal fade" id="myModalObra<?php echo utf8_encode($regObra['ObraId'])?>" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">


  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
        <h4 class="modal-title" id="myModalLabel"><?php echo utf8_encode($regObra['ObraTitulo'])?></h4>
      </div>
      <div class="modal-body">
	  <div class="row">
	  <div class="col-md-6">
	  <img src="<?php echo RUTA_PANEL."/".$regObra['Obra']?>" alt="<?php echo utf8_encode($regObra['ObraTitulo'])?>"  height="350px"/>
	  </div>
	  
	  <div class="col-md-6">
	  <h2>Caracteristicas</h2>
	  <?php echo utf8_encode($regObra['ObraBio'])?>
	  </div>
	  </div>

     </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-success" data-dismiss="modal">Cerrar</button>
       
      </div>
    </div>
  </div>

</div>






<?php endwhile ?>
<?php endif ?>
 </div>